/*
 * @Author: szx
 * @Date: 2022-01-22 13:18:46
 * @LastEditTime: 2022-01-22 13:28:44
 * @Description:
 * @FilePath: \leetcode\1300-1399\1332\1332.js
 */
/**
 * @param {string} s
 * @return {number}
 */
var removePalindromeSub = function (s) {
    const n = s.length;
    for (let i = 0; i < Math.floor(n / 2); ++i) {
        if (s[i] !== s[n - 1 - i]) {
            return 2;
        }
    }
    return 1;
};
